#include <iostream>
#include <math.h>
using namespace std;
int main()
{
double a;
double b;
double c;
double d;
cout << "a=" ;
cin >> a;
b=a*a;
cout<<"a^2="<<b<<endl;
c=a*a*a*a;
cout<<"a^4="<<c<<endl;
d=a*a*a*a*a*a*a*a;
cout<<"a^8="<<d;

return 0;
}
